package com.czl.module_storehouse.bean;

import com.czl.base.data.bean.tengyun.LocatListBean;

import java.util.List;

/**
 * @author xubin
 */
public class StorageSortViewListBean {

    private int manageMode;
    private String manageModeStr;
    private String sortModel;
    private int storageNum;
    private String sortName;
    private String sortTypeStr;
    private String sortCode;
    private String manufacturer;
    private int sortType;
    private String price;
    private int sortId;
    private String manufactureDate;
    private int storageSortId;
    private List<LocatListBean> locatList;

    public int getManageMode() {
        return manageMode;
    }

    public void setManageMode(int manageMode) {
        this.manageMode = manageMode;
    }

    public String getManageModeStr() {
        return manageModeStr;
    }

    public void setManageModeStr(String manageModeStr) {
        this.manageModeStr = manageModeStr;
    }

    public String getSortModel() {
        return sortModel;
    }

    public void setSortModel(String sortModel) {
        this.sortModel = sortModel;
    }

    public int getStorageNum() {
        return storageNum;
    }

    public void setStorageNum(int storageNum) {
        this.storageNum = storageNum;
    }

    public String getSortName() {
        return sortName;
    }

    public void setSortName(String sortName) {
        this.sortName = sortName;
    }

    public String getSortTypeStr() {
        return sortTypeStr;
    }

    public void setSortTypeStr(String sortTypeStr) {
        this.sortTypeStr = sortTypeStr;
    }

    public String getSortCode() {
        return sortCode;
    }

    public void setSortCode(String sortCode) {
        this.sortCode = sortCode;
    }

    public String getManufacturer() {
        return manufacturer;
    }

    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer;
    }

    public int getSortType() {
        return sortType;
    }

    public void setSortType(int sortType) {
        this.sortType = sortType;
    }

    public String getPrice() {
        return price;
    }


    public void setPrice(String price) {
        this.price = price;
    }

    public int getSortId() {
        return sortId;
    }

    public void setSortId(int sortId) {
        this.sortId = sortId;
    }

    public String getManufactureDate() {
        return manufactureDate;
    }

    public void setManufactureDate(String manufactureDate) {
        this.manufactureDate = manufactureDate;
    }

    public int getStorageSortId() {
        return storageSortId;
    }

    public void setStorageSortId(int storageSortId) {
        this.storageSortId = storageSortId;
    }

    public List<LocatListBean> getLocatList() {
        return locatList;
    }

    public void setLocatList(List<LocatListBean> locatList) {
        this.locatList = locatList;
    }

    public String getLocText() {
        if (locatList == null || locatList.size() == 0) {
            return "";
        }
        StringBuilder text = new StringBuilder();
        for (LocatListBean locatListBean : locatList) {
            if (locatListBean.getStorageNum() == 0) {
                continue;
            }
            text.append(locatListBean.getStorehouseLocatName())
                    .append("(")
                    .append(locatListBean.getStorageNum())
                    .append(")");
        }
        return text.toString();
    }
}
